<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>
<script>
import { reactive, toRefs } from 'vue'
import { useRouter } from 'vue-router'
import AxiosPost from './api/index'
export default {
    created() {
        this.getData();
    },
    methods: {
        async getData() {
            // let info = await AxiosPost('/admin/shop_set/configshop')
            // if (info.code !== 10000) {
            //     this.$message.error(info.message)
            //     return false
            // }
            // this.$store.state.show_qiniu_img = info.data.domain_img
            // this.$store.state.scope_img = info.data.qiniu_bucket
        },
        formatDate(row, column) {
            let date = new Date(parseInt(row.create_time) * 1000);
            let Y = date.getFullYear() + '-';
            let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) + '-' : date.getMonth() + 1 + '-';
            let D = date.getDate() < 10 ? '0' + date.getDate() + ' ' : date.getDate() + ' ';
            let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
            let m = date.getMinutes()  < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
            let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
            return Y + M + D + h + m + s;
        },
    }

}
</script>
<style>
    @import "./assets/css/main.css";
    @import "./assets/css/color-dark.css";     /*深色主题*/
    /*@import "./assets/css/theme-green/color-green.css";   浅绿色主题*/
</style>
